import request from "../config/request";

export function findFirstCategory() {
  return request({
    url: "/goods/seller/category/firstList",
    method: "get",
  });
}

export function findSecondCategory(parentId) {
  return request({
    url: "/goods/seller/category/secondList/" + parentId,
    method: "get",
  });
}

export function findGoodsByCategory(data) {
  return request({
    url: "/goods/seller/category/findGoodsByCategory",
    method: "post",
    data: data,
  });
}

export function addCart(data) {
  return request({
    url: "/goods/seller/category/addCart",
    method: "post",
    data: data,
  });
}

export function selectCartNum(data) {
  return request({
    url: "/goods/seller/category/selectCartNum",
    method: "post",
    data: data,
  });
}

export function findGoodsByBnameOrGoodsName(data) {
  return request({
    url: "/goods/seller/category/findGoodsByBnameOrGoodsName",
    method: "post",
    data: data,
  });
}

